package com.surveillance.tests;

import com.surveillance.BO.UserBO;
import com.surveillance.entities.User;
import com.surveillance.util.LoadBeans;

public class PopulatingUsers {
	public static void main(String [] args){
		UserBO userBO= (UserBO) LoadBeans.getUserBO();
		User ghaffari= new User();
		ghaffari.setLogin("admin");
		ghaffari.setPassword("admin");
		ghaffari.setNom("GHAFFARI");
		ghaffari.setPrenom("El Mehdi");
		ghaffari.setType("administrateur");
		userBO.save(ghaffari);
		//System.out.println("test de l authentification "+userBO.authenticate("GHAFFARI", "54468"));
	}
}
